package com.gelingqin.es.springbootdemo.process;

import com.gelingqin.es.springbootdemo.entity.Condition;
import com.gelingqin.es.springbootdemo.entity.Query;

import java.util.List;



/**
 * 等于处理类
 * @author 86133
 *
 */
public class EqualProcess implements ConditionProcess {

	@Override
	public void process(Query query, Condition condition) {
		List<String> values=condition.getValues();
		if (values!=null&&values.size()>0) {
			query.match(condition.getKey(), values.get(0));
		}
		
	}

}
